<?php
$arr=$_GET;
$res=file_get_contents("2.txt");
if($res){
    $data = json_decode($res,true);
    array_push($data,$arr);
    file_put_contents("2.txt" ,json_encode($data));
    
}else{
    $info[]=$arr;
    file_put_contents("2.txt",json_encode($info));
}

header("Location:zuoye.php");


?>